package com.ruoyi.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ConnectDeviceTypeEnum {
    PC("pc","电脑端"),
    MOBILE("mobile","手机端")
    ;
    private final String type;//连接设备类型
    private final String content;//内容

    public static ConnectDeviceTypeEnum getDeviceType(String type){
        for(ConnectDeviceTypeEnum types : ConnectDeviceTypeEnum.values()){
            if(types.getType().equals(type)){
                return types;
            }
        }
        return null;
    }

}
